/*
 * Copyright (c) 2010-2011 GOV.
 * [Id:MenuTreeNode.java  11-9-9 PM4:17 poplar.mumu ]
 */
package org.mumu.pawn.model;

import org.richfaces.model.TreeNodeImpl;

/**
 * .
 * <br/>
 *
 * @author poplar.mumu
 * @version 1.0 11-9-9 PM4:17
 * @since JDK 1.5
 */
public class MenuNode extends TreeNodeImpl {
    private String title;

    private String path;

    private boolean exppanded=false;

    public boolean isExppanded() {
        return exppanded;
    }

    public void setExppanded(boolean exppanded) {
        this.exppanded = exppanded;
    }

    public MenuNode(String title, String path) {
        super();
        this.title = title;
        this.path = path;
    }

    public MenuNode(String title, String path, boolean exppanded) {
        this.title = title;
        this.path = path;
        this.exppanded = exppanded;
    }

    public MenuNode(boolean leaf, String title, String path, boolean exppanded) {
        super(leaf);
        this.title = title;
        this.path = path;
        this.exppanded = exppanded;
    }

    public MenuNode(boolean leaf, String title, String path) {
        super(leaf);
        this.title = title;
        this.path = path;
    }

    public MenuNode(String title, boolean expanded) {
        super();
        this.title = title;
        this.exppanded = expanded;
    }

    public MenuNode(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
}
